(function($){
    var config = {
        body:$('body'),
        header:$('header'),
        view:$('#ng-view'),
        footer:undefined
    };
    resize();

    $(window).resize(function(){
        resize();
    });

    function resize(){
        config.body.css({
            height:$(window).height()
        });
        config.view.css({
            height:(parseInt($(window).height())
                - parseInt(config.header.height())
                - parseInt(config.footer?config.footer.height():0))
            + 'px'
        });
    }

})($);